//  this library.
/// 试卷类型枚举
enum PaperTypeEnum {
  prophesy(desc: "冲刺密卷"),
  mock(desc: "模拟试卷"),
  trueTopic(desc: "历年真题"),
  ;

  final String desc;

  const PaperTypeEnum({
    required this.desc,
  });

  static PaperTypeEnum? getTypeEnum(String type) {
    var values = PaperTypeEnum.values;
    for (var value in values) {
      if (value.name == type) {
        return value;
      }
    }
    return null;
  }
}
